<?php

namespace App\Http\Controllers;

use App\ClubLeader;
use Illuminate\Http\Request;

class ClubLeaderController extends Controller
{
    public function index()
    {
        $leaders = ClubLeader::latest('created_at')->Paginate(8);
        return view('Club.clubLeaders',compact('leaders'));
    }

    public function destroy($id)
    {
        ClubLeader::destroy($id);
    }
}
